<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAlipayTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('alipay', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('orderID')->comment('支付订单号');
            $table->string('ordername')->comment('订单名称');
            $table->string('deal')->comment('商品描述');
            $table->string('describe')->comment('交易金额');
            $table->string('payee')->comment('收款方');
            $table->enum('订单状态',[0,1])->comment('订单状态，订单失败0，成功1');
            $table->string('transactionID')->comment('交易号');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('alipay');
    }
}
